import request from '@/utils/request'

// 添加菜单按钮
export function addHomeMenu(data) {
    return request({
        url: `/send/home-menu`,
        method: 'put',
        data: data
    })
}

// 查询菜单按钮
export function getAllHomeMenuByUserId() {
    return request({
        url: `/send/home-menu`,
        method: 'get'
    })
}

// 删除菜单按钮
export function deletedHomeMenu(meunId) {
    return request({
        url: `/send/home-menu/${meunId}`,
        method: 'deleted'
    })
}